home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / radiance / simplerd.lha / simplerad / FinalFTP / WalkT / auto.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-20  |  2.0 KB  |  50 lines

  1. /**********************************************************************/
  2. /* auto.h                                                             */
  3. /*                                                                    */
  4. /* Copyright (C) 1992, Bernard Kwok                                   */
  5. /* All rights reserved.                                               */
  6. /* Revision 1.0                                                       */
  7. /* May, 1992                                                          */
  8. /**********************************************************************/
  9. #ifndef AUTO_H
  10. #define AUTO_H
  11.  
  12. #define WRITEF "w"
  13. #define READF "r"
  14. #define HEAD_NMOVES    "nmoves"
  15. #define HEAD_TRANSLATE "Move T {"
  16. #define HEAD_ROTATE    "Move R {"
  17. #define HEAD_SPIN      "Move P {"
  18. #define HEAD_SCALE     "Move S {"
  19. #define HEAD_ZOOM      "Move Z {"
  20. #define HEAD_ABSOLUTE  "Move A {"
  21.  
  22. #define MOVEABS 'A'         /* Movement to absolute position          */
  23. #define MOVEREL_ROT 'R'     /* Rotation in X,Y relative to eye        */
  24. #define MOVEREL_SPIN 'P'    /* Rotation in Z relative to eye          */
  25. #define MOVEREL_SCALE 'S'   /* Scale image movement relative to eye   */
  26. #define MOVEREL_TRANSL 'T'  /* Translation in X,Y relative to eye     */
  27. #define MOVEREL_ZOOM 'Z'    /* Translation in Z relative to eye       */
  28. char Movetype;              /* Type of move reading in                */
  29.  
  30. /**********************************************************************/
  31. /* Prototypes                                                         */
  32. /**********************************************************************/
  33. void PrintRelMove();
  34. void PrintAbsMove();
  35. int OpenMoveFile(/* char*filename, char *filemode*/);
  36. int ReadMoves();
  37.  
  38. RelMovement *CreateRelMove();
  39. AbsMovement *CreateAbsMove();
  40. void ClearOrientLog();
  41. void LogRelMove();
  42. void LogAbsMove();
  43.  
  44. void InitMoveLog(/* char*filename, char mode, int nmoves*/);
  45. void WriteRelMove(/* *RelMovement, int mtype */);
  46. void WriteAbsMove(/* *AbsMovement */);
  47. int WriteMoves(/* *char filename, *Movement, int nmoves */);
  48.  
  49. #endif /* AUTO_H */
  50.